import request from '@/utils/request'

export const uploadChunk = (data, config = {}) => {
  return request({
    url: '/file/upload/chunk',
    method: 'post',
    data,
    ...config
  })
}

export const mergeChunks = (data, config = {}) => {
  return request({
    url: '/file/upload/merge',
    method: 'post',
    data,
    ...config
  })
}

export const checkFileStatus = (data, config = {}) => {
  return request({
    url: '/file/upload/check',
    method: 'get',
    params: data,
    ...config
  })
}